package org.ilead.iserve.dao;

import java.util.List;

import org.ilead.iserve.model.UserPermission;

public interface IUserPermissionDAO {
	// property constants
	public static final String CODE = "code";
	public static final String NAME = "name";
	public static final String VALUE = "value";
	
	public abstract void save(UserPermission transientInstance);

	public abstract void delete(UserPermission persistentInstance);

	public abstract UserPermission findById(java.lang.Integer id);

	public abstract List findByExample(UserPermission instance);

	public abstract List findByProperty(String propertyName, Object value);
	
	public abstract List findByCode(Object code);

	public abstract List findAll();

	public abstract UserPermission merge(UserPermission detachedInstance);

	public abstract void attachDirty(UserPermission instance);

	public abstract void attachClean(UserPermission instance);
}
